package com.school.repair.service;

import com.school.repair.dao.RepairManDao;
import com.school.repair.entity.RepairMan;
import com.school.repair.util.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class RepairManService {

    @Resource
    RepairManDao repairManDao;

    public Page<RepairMan> repairManPage(int pageNo, int pageSize, String name, String goodat) {
            List<RepairMan> list = repairManDao.repairManPage(pageNo, pageSize, name, goodat);
            int total = repairManDao.total(name, goodat);
            return new Page<RepairMan>(total, list, pageNo);
    }


}
